#include <string>
#include <iostream>

int main() {
    std::string apple = "apple\n";
    int i = apple.find_last_of('\r');
    std::cout << i << "\n";
}
